package com.gd.coreservice.service;

import com.gd.coreservice.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gd.coreservice.entity.vo.UsersVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2024-03-23
 */
public interface UsersService extends IService<Users> {

    Users findOne(String id);

    UsersVo login(String username, String password);

    String findId(String username);

    boolean register(String username, String password);

    boolean updatePassword(String uid, String password, String newpassword);

    List<Users> findAll();

    boolean insertUsers(Users users);

    boolean updateUser(Users users);

    Integer deleteUserById(String uid);

    Integer deleteUserBatch(List<String> uids);

    Map<String, Object> getUserPageData(Integer pageNum, Integer pageSize, String username);

    int getAllTotal();
}
